package com.api.user.dao;

import com.api.common.mybatis.ResultMap;
import com.api.core.ApiMapper;
import com.api.user.model.CompanionGame;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CompanionGameMapper extends ApiMapper<CompanionGame> {
    CompanionGame getByUserIdAndGameId(@Param("userId") Long userId,@Param("gameId") Long gameId);

    List<ResultMap<String, Object>> list(@Param("params") Map<String, Object> params,@Param("order") Map<String, Object> orderParams);
}